<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "sign".
 *
 * @property int $id
 * @property string $number 号码牌
 * @property string $name 姓名
 * @property string $mobile 手机号
 * @property int $sort 手机号
 * @property int $created_at 创建时间
 */
class Sign extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'sign';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['number', 'name', 'mobile', 'sort', 'created_at'], 'required'],
            [['sort', 'created_at'], 'integer'],
            [['number', 'name', 'mobile'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'number' => 'Number',
            'name' => 'Name',
            'mobile' => 'Mobile',
            'sort' => 'Sort',
            'created_at' => 'Created At',
        ];
    }
}
